#include "TcpServer.hpp"
#include <cstdio>


void manual(const char* argv)
{
    printf("%s port\n",argv);
}

int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        manual(argv[0]);
        exit(1);
    }
    Deamon();
    TcpServer server(std::stoi(argv[1]));
    // cout<<"hello"<<endl;
    server.init();
    server.run();
    return 0; 
}